
import {
    RouteRecordRaw,
    createRouter,
    createWebHistory,
} from "vue-router";
import pages from './index-page'
const routers: RouteRecordRaw[] = [
    {
        path: "/login",
        name: 'login',
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: "登陆 ｜劳务班组人员管理系统"
        },
    },
    {
        path: "/",
        name: 'index',
        component: () => import('@/layout/index.vue'),
        redirect: "/tasks",
        meta: {
            title: "首页",
        },
        children: [...pages]
    },

]
const router = createRouter({
    history: createWebHistory(),
    routes: routers,
});
export default router;